<!-- BasePanel -->
<template>
  <div class="BasePanel-root">
    <div class="panel-name" v-if="name">{{ name }}</div>
    <slot></slot>
  </div>
</template>

<script>
export default {
  name: 'BasePanel',
  props: {
    name: {
      type: String,
    },
  },
  data() {
    return {};
  },
};
</script>

<style lang="scss" scoped>
.BasePanel-root {
  position: relative;
  background: #ffffff;
  border-radius: 4px;
  padding: 20px;
  .panel-name {
    font-size: 16px;
    color: #333333;
    line-height: 22px;
  }
}
</style>
